﻿<UserControl x:Class="AutoLoL.Controls.ChatItemControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:converters="clr-namespace:AutoLoL.Converters"
             x:Name="RootElement"
             mc:Ignorable="d" 
             d:DesignHeight="60" d:DesignWidth="500">
    <StackPanel>
        <Border BorderBrush="DimGray" BorderThickness="1" Margin="0 0 0 -1">
            <DockPanel LastChildFill="True">
                <StackPanel Orientation="Horizontal" DockPanel.Dock="Left" Margin="5 7 0 0">
                    <TextBlock Name="IndexTextBlock" FontWeight="Bold" />
                    <TextBlock Text="." FontWeight="Bold" />
                </StackPanel>
                <Grid Name="ButtonGrid" DockPanel.Dock="Right" Margin="0 0 5 0">
                    <Button Name="CreateButton" IsTabStop="False" Width="23" Height="23" Margin="0 5 0 0" VerticalAlignment="Top" Click="CreateButton_Click" ToolTip="Convert to menu">
                        <Image Width="16" Height="16" Source="pack://siteoforigin:,,,/Data/Images/Icons/node-insert-child.png" />
                    </Button>
                    <Button Name="DeleteButton" IsTabStop="False" Width="23" Height="23" Margin="0 5 0 0" VerticalAlignment="Top" Click="DeleteButton_Click" ToolTip="Convert to chat item">
                        <Image Width="16" Height="16" Source="pack://siteoforigin:,,,/Data/Images/Icons/node-delete-child.png" />
                    </Button>
                </Grid>
                <Grid Margin="6 0 5 0">
                    <Grid Name="TitleGrid" Height="28">
                        <TextBox Name="TitleTextBox" MaxLength="120" Visibility="Collapsed" />
                        <TextBlock Margin="2 6 0 0" Name="TitleTextBlock" Text="{Binding ElementName=TitleTextBox, Path=Text}" />
                    </Grid>
                    <Expander Name="ContentExpander">
                        <Expander.Header>
                            <Grid Height="28">
                                <TextBox Name="TitleExpanderTextBox" MaxLength="80" Visibility="Collapsed" Text="{Binding ElementName=TitleTextBox, Path=Text}" Width="400" />
                                <TextBlock Margin="2 6 0 0" Name="TitleExpanderTextBlock" Text="{Binding ElementName=TitleTextBox, Path=Text}" />
                            </Grid>
                        </Expander.Header>
                        <StackPanel Name="ChildrenStackPanel" Margin="5">
                        </StackPanel>
                    </Expander>
                </Grid>
            </DockPanel>
        </Border>
    </StackPanel>
</UserControl>
